using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 嘲讽Buff数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/BuffData/Taunt")]
public class TauntData : BuffData
{
    [Header("嘲讽效果设置")]
    [Tooltip("是否可以被净化")]
    public bool CanBeCleansed = true;
    
    [Tooltip("是否可以被免疫")]
    public bool CanBeImmune = true;

    private void OnValidate()
    {
        // 确保BuffType正确设置
        if (BuffType != BuffType.Taunt)
        {
            BuffType = BuffType.Taunt;
        }
        
        // 设置默认标签
        if (Tags == BuffTag.None)
        {
            Tags = BuffTag.Control;
        }
    }
}